<#import "/freemarker/modeltype.ftl" as mt>
<div class="dataTables_title">
	<div class="dataTables_title_left">按钮注释</div>
	<div class="dataTables_title_right">
		<a class="btn btn-danger" href="#"><i class="icon-lock"></i> 屏蔽</a>
		<a class="btn btn-warning" href="#"><i class="icon-unlock"></i> 解除屏蔽</a>
		<a class="btn" href="#"><i class="icon-book"></i> 详情</a>
	</div>
</div>
<table class="table table-bordered">
	<tr>
		<th>标题</th>
		<th>创建时间</th>
		<th>申请部门</th>
		<th>审核状态</th>
		<th>备注</th>
		<th style="width:50px;">是否屏蔽</th>
		<th style="width:60px;">操作</th>
	</tr>
	<#list pageBean.resultList as re>
	<tr>
		<td>${re.title}</td>
		<td>${re.ct?string('yyyy-MM-dd HH:mm')}</td>
		<td>${re.on}</td>
		<td>
			<#if (re.auditStatusList??  && re.auditStatusList?size gt 0 )>
				<#list re.auditStatusList as item>
					<#if item.au??>
						${(item.auName)!''} 
						【<span><#if item.status?? && item.status == 1><font style="color:green;">通过</font><#elseif item.status?? && item.status == 2><font style="color:red;">未通过</font>】<#break/><#else>未审核</#if></span>】>>>
						<#if re.auditStatusList?size == (item.pc) && item.status == 1 >
							【<font style="color:orange;">全部通过</font>】
			 			</#if>
					<#else>
						【<font style="color:orange;">未审核</font>】
						<#break/>
					</#if>
				</#list>
			<#else>
				【<font style="color:red;">没有配置流程</font>】
			</#if>
		</td>
		<td>${re.remark}</td>
		<td style="font-weight:bold; color:<#if (re.deleted)>red<#else>green</#if>;"><@mt.YesOrNo value=((re.deleted)!false) r=false /></td>
		<td>
			<div class="btn-group">
				<#if !re.deleted>
				<a class="btn btn-xs btn-danger" href="javascript:;" onclick="javascript: shield_reimburse('${re.code}', '${re.title}');return false;" title="屏蔽"><i class="icon-lock"></i></a>
				<#else>
				<a class="btn btn-xs btn-waring" href="javascript:;" onclick="javascript: unshield_reimburse('${re.code}', '${re.title}');return false;" title="解除屏蔽"><i class="icon-unlock"></i></a>
				</#if>
				<#if re.pass == 4 || re.pass == 3>
				<a class="btn btn-xs" href="javascript:;" title="查看" onclick="javaxcript: showDetail_reimburse('${re.code}');return false;"><i class="icon-book"></i></a>
				<#else>
				<a class="btn btn-xs btn-success" title="编辑" onclick="javascript: sys_load_handle('reimburse-edit_${re.code}');return false;" href="javascript:;"><i class="icon-edit"></i></a>
				</#if>
			</div>
		</td>
	</tr>
	</#list>
</table>
<#import "/freemarker/pagination.ftl" as p>
<@p.pagination pageBean 'query_reimburse'/>